package com.ck.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author linqiang
 * @version v1.0
 * @date 2018-09-19 12:03
 */
public class JwtToken implements AuthenticationToken {

    /**
     * 秘钥
     */
    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
